import request from '@/utils/request'

// 查询运动计划列表
export function listExercisePlans(query) {
  return request({
    url: '/fitsculpt/exercise/plans/list',
    method: 'get',
    params: query
  })
}

// 查询运动计划详细
export function getExercisePlans(planId) {
  return request({
    url: '/fitsculpt/exercise/plans/' + planId,
    method: 'get'
  })
}

// 新增运动计划
export function addExercisePlans(data) {
  return request({
    url: '/fitsculpt/exercise/plans',
    method: 'post',
    data: data
  })
}

// 修改运动计划
export function updateExercisePlans(data) {
  return request({
    url: '/fitsculpt/exercise/plans',
    method: 'put',
    data: data
  })
}

// 删除运动计划
export function delExercisePlans(planId) {
  return request({
    url: '/fitsculpt/exercise/plans/' + planId,
    method: 'delete'
  })
} 